/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.resp.GetExaminationQuestionResponse;
import com.xy.lang.domain.Result;
import com.xy.biz.ts.domain.bo.ExaminationQuestionBO;
import com.xy.biz.ts.domain.query.ExaminationQuestionQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-3-8
 */
public interface ExaminationQuestionService {

	/**
	 * 保存
	 *
	 * @param examinationQuestionBO
	 */
	Result<?> saveExaminationQuestion(ExaminationQuestionBO examinationQuestionBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllExaminationQuestion(Collection<ExaminationQuestionBO> collection);

	/**
	 * 更新
	 *
	 * @param examinationQuestionBO
	 */
	Result<?> updateExaminationQuestion(ExaminationQuestionBO examinationQuestionBO);

	/**
	 * 删除
	 *
	 * @param examinationQuestionId
	 */
	Result<?> deleteExaminationQuestion(Long examinationQuestionId);

	/**
	 * 查找一个
	 *
	 * @param examinationQuestionId
	 * @return
	 */
	ExaminationQuestionBO getExaminationQuestion(Long examinationQuestionId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ExaminationQuestionBO> listExaminationQuestionById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ExaminationQuestionBO> listExaminationQuestion(ExaminationQuestionQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countExaminationQuestion(ExaminationQuestionQuery query);

	/**
	 * 获取考卷试题
	 * @param examinationPaperId
	 * @return
	 */
    Result<List<GetExaminationQuestionResponse>> pageExaminationQuestionByPaperId(Long examinationPaperId);
}
